package com.niiwoo.civet.trade.service.dubbo.lend;

import com.niiwoo.civet.trade.dto.common.ProjectLendRecordDTO;
import com.niiwoo.civet.trade.enums.ProjectFromSourceEnum;

import com.alibaba.dubbo.config.annotation.Service;
import com.niiwoo.civet.trade.dto.common.InvestFullLendDTO;
import com.niiwoo.civet.trade.dto.common.TcLendAfterDTO;
import com.niiwoo.civet.trade.service.lend.TcProjectLendDubboService;

import java.util.List;

/**
 * 交易中心满标放款处理
 * @author liaojunjun
 *
 */
@Deprecated
@Service(version = "1.0.0")
public class TcProjectLendDubboServiceImpl implements TcProjectLendDubboService {
	
	//@Autowired
	//private TcProjectLendLocalService tcProjectLendLocalService;

	@Override
	public void investFullLend(InvestFullLendDTO dto) {
		//tcProjectLendLocalService.investFullLend(dto);
	}

	@Override
	public void lendAfter(TcLendAfterDTO dto) {
		//tcProjectLendLocalService.lendAfter(dto);
	}
	
	@Override
	public void lendWaitingBankNotifyJob() {
		//tcProjectLendLocalService.lendWaitingBankNotifyJob();
	}
	
	@Override
	public void lendAbnormityJob() {
		//tcProjectLendLocalService.lendAbnormityJob();
	}
	
	@Override
	public void lendAbnormityReplenishOrder(Long projectId) {
		//tcProjectLendLocalService.lendAbnormityReplenishOrder(projectId);
	}

	@Override
	public List<ProjectLendRecordDTO> listProjectLendCoredByFromSource(ProjectFromSourceEnum fromSourceEnum) {
		//return tcProjectLendLocalService.listProjectLendCoredByFromSource(fromSourceEnum);
		return null;
	}

	/**
	 * 根据标的id查询放款记录
	 * @param projectId
	 * @return
	 */
	@Override
	public ProjectLendRecordDTO queryProjectLendRecordByProjectId(Long projectId) {
		//return tcProjectLendLocalService.queryProjectLendRecordByProjectId(projectId);
		return null;
	}

	/**
	 * 红包补偿
	 * @param type 1：投资红包 2：借款红包
	 * @param id type==1传递投资订单ID; type==2传递标的ID
	 */
	@Override
	public void prizeCompensate(String type , Long id) {
		//tcProjectLendLocalService.prizeCompensate(type, id);
	}

}
